package com.tangding.service.entity.user;

import java.util.Date;
import java.util.List;
import java.util.UUID;

import com.tangding.service.entity.BaseEntity;

public class User extends BaseEntity{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String password;
	private String uid;
	private String name;
	private List<Integer> roles;
	private Date createTime;
	private byte userType;//0超级管理员，1管理员
	private Date lastLoginTime;
	private Date enableStart;//有效期开始时间
	private Date enableEnd;//有效期结束时间
	private boolean enable = true;//是否有效
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public List<Integer> getRoles() {
		return roles;
	}
	public void setRoles(List<Integer> roles) {
		this.roles = roles;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public byte getUserType() {
		return userType;
	}
	public void setUserType(byte userType) {
		this.userType = userType;
	}
	public Date getLastLoginTime() {
		return lastLoginTime;
	}
	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}
	public Date getEnableStart() {
		return enableStart;
	}
	public void setEnableStart(Date enableStart) {
		this.enableStart = enableStart;
	}
	public Date getEnableEnd() {
		return enableEnd;
	}
	public void setEnableEnd(Date enableEnd) {
		this.enableEnd = enableEnd;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isEnable() {
		return enable;
	}
	public void setEnable(boolean enable) {
		this.enable = enable;
	}
	public static void main(String[] args) {
		User users = new User();
		users.setUid(UUID.randomUUID().toString());
		users.setPassword("098f6bcd4621d373cade4e832627b4f6");
//		users.setRoles(roles);
	}
}